Skip to content

clk: qcom: videocc-sm8150: add qcom,sc8180x-videocc compatible - #211

Open
robertijtsma wants to merge 1 commit into
linux-surface:spx/v7.3from
robertijtsma:spx-clk-qcom-videocc-sc8180x
Open

robertijtsma wants to merge 1 commit into
linux-surface:spx/v7.3from
robertijtsma:spx-clk-qcom-videocc-sc8180x

Conversation

@robertijtsma

Copy link
Copy Markdown

Summary

Add an explicit "qcom,sc8180x-videocc" OF match entry to drivers/clk/qcom/videocc-sm8150.c. The SC8180X video clock controller at 0xab00000 (already declared in arch/arm64/boot/dts/qcom/sc8180x.dtsi with compatible = "qcom,sc8180x-videocc", "qcom,sm8150-videocc") shares the same PLL, branch clocks, resets, and GDSCs (venus_gdsc, vcodec0_gdsc, vcodec1_gdsc) as SM8150.

Verification

  • videocc-sm8150.ko compiled cleanly with W=1 against Linux 7.3.1-1-surface (0 errors, 0 warnings).
  • ./scripts/checkpatch.pl --no-tree: 0 errors, 0 warnings.
  • Live-tested on Microsoft Surface Pro X SQ2 (SC8180X, Linux 7.3.1-1-surface).

The SC8180X video clock controller at 0xab00000 exposes the same
register layout, PLL, branch clocks, resets, and GDSCs (venus_gdsc,
vcodec0_gdsc, vcodec1_gdsc) as SM8150, and sc8180x.dtsi lists
compatible = "qcom,sc8180x-videocc", "qcom,sm8150-videocc".

Add an explicit qcom,sc8180x-videocc OF match entry so the driver
exports a matching modalias and binds explicitly on SC8180X.

Tested on Microsoft Surface Pro X SQ2 (SC8180X, Linux 7.3.1-1-surface).

Signed-off-by: robertijtsma <37256770+robertijtsma@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant